<link href="../addons/jy_zhongyi/resource/css/weui.css" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/vendors.css" rel="stylesheet">
<link href="../addons/jy_zhongyi/resource/css/appindex.css?v=1" rel="stylesheet">
<style>

			html,
			body {
				height: 100%;
				overflow: hidden;
			}
            .btn {
                height: 64px;
                width: 100%;
                position: fixed;
                bottom: 0;
                left: 0;
                border-top: 1px solid #f5f5f6;
                z-index: 33;
                background-color: #ffffff;
            }
            .btn a {
                background-color: #c03e3e;
                height: 44px;
                border-radius: 8px;
                color: #ffffff;
                margin: 0 auto;
                margin-top: 10px;
                text-align: center;
                line-height: 44px;
                font-size: 20px;
                font-weight: bold;
                display: block;
                width: 94%;
                padding: 0;
                border: 1px solid transparent;
                outline: none;
            }
            #article_content img {
                vertical-align: top;
            }
		   
</style>
<div class='fui-page fui-page-current'>
		<div class="course_live_list">
		<div class="van-tabs van-tabs--line">
			<div class="fui-tab fui-tab-success">
					<a ng-class="{'active':pagedata.params.type==0}" ng-click="pagedata.params.type=0;pagedata.getlist();">直播</a>
					<a ng-class="{'active':pagedata.params.type==1}" ng-click="pagedata.params.type=1;pagedata.getlist();">讲座</a>
			</div>
		</div>
		<div class="van-tabs__content">
		<div  role="tabpanel" class="van-tab__pane" style="">
		<div  role="feed" class="van-list">
		<ul>
		<li ng-repeat="item in pagedata.list" ng-click="access_json(item.url)" class="background-ffffff margin-t-12 position-r">
			<div><img ng-src="{{tomedia(item.image)||'../core/resource/images/nopic.jpg'}}" alt="" style="width: 100%;"></div>
			<div class="padding-12-16">
			<div class="margin-t-8" style="color: rgb(51, 51, 51);">{{item.title}}</div>
			<div class="margin-t-8 font-size12 color-999999">时间：{{item.starttime || item.time}}</div>
			<div class="margin-t-8 zhibo-text" style="color: rgb(102, 102, 102);">{{item.desc}}</div>
			<div ng-if="pagedata.params.type==1" class="his-flex">
				<span class="flex-1">{{item.starttime}} {{item.storetitle}}</span>
				<span class="color-999999 green-color">¥{{item.price || '0.00'}}</span>
			</div>
			</div>
		</li>
		</ul>
		<div class="van-list__placeholder">
		</div>
		</div>
		</div>
		</div>
		</div>
		</div>
</div>
<script type="text/javascript">
scope.pagedata.getlist=function(){
	if(scope.pagedata.params.type==0){
		scope.tool.get_list('jy_zhongyi/zhibo/getlist/',true);
	}
	if(scope.pagedata.params.type==1){
		scope.tool.get_list('jy_zhongyi/baoming.index/list/',true);
	}
}
scope.tool.get_list('jy_zhongyi/zhibo/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.params.type==0){
		scope.tool.get_list('jy_zhongyi/zhibo/getlist/');
	}
	if(scope.pagedata.params.type==1){
		scope.tool.get_list('jy_zhongyi/baoming.index/list/');
	}
}
</script>